<script>
	const age = 12;
	const name = "Amy";

	// 传统
	const person1 = {age: age, name: name};
	console.log(person1);

	// ES6
	const person2 = {age, name};
	console.log(person2);//{age: 12, name: "Amy"}
</script>
